import { Component ,Input ,OnInit} from '@angular/core';

@Component({
  selector: 'userlist',
  templateUrl: 'userlist.html'
})
export class UserlistComponent implements OnInit {
  @Input() categray;
  public list=[];

  constructor() {
   
  }
  ngOnInit(){
    // this.list = ['1111','2222','3333']
    for(var i=0;i<5;i++){
      var index = i+1
      this.list.push("我是第"+index+"条数据")
    }
    console.log(this.categray)
  }
  goInfo(e){
    console.log(this.categray)
  }

}
